import request from '@/axios'
// 用户列表
export const getPageList = (params: any) => {
  return request.get({ url: '/user/list', params })
}

// 详情接口
export const getUserDetail = (userId: number) => {
  return request.get({ url: '/user/info', params: { userId: userId } })
}
// 后端新增用户接口
export const addUser = (data: any) => {
  return request.post({ url: '/user/create', data })
}
// 编辑用户接口
export const editUser = (data: any) => {
  return request.post({ url: '/user/update', data })
}
// 删除接口
export const deleteUser = (id: number) => {
  return request.post({ url: '/user/delete/' + id })
}
